import request from '@/utils/request';
// //社保服务
// //列表接口
export async function handleList(params) {
  return request(`/osApi/insSerHdl/pageInsSerHdlList`, {
    method: 'POST',
    body: {
      ...params,
      // insSerHdlVo:{}
    },
  });
}
export async function handleEsList(params) {
  return request(`/esApi/insSerHdl/pageListInsSerHdl`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// //字典接口
export async function handleDicList(params) {
  return request(`/osApi/mdm/nmDict/queryDictItemsByCodes`, {
    method: 'POST',
    body: params,
  });
}

export async function originCircle(params) {
  return request(`/osApi/insSerHdl/insertOrigInalRemark`, {
    method: 'POST',
    body: params,
  });
}

export async function handleStartList(params) {
  return request(`/osApi/insSerHdl/queryInsSerHdl`, {
    method: 'POST',
    body: params,
  });
}
// 开始办理
export async function startHandle(params) {
  return request(`/osApi/insSerHdl/startHandleInsSerHdl`, {
    method: 'POST',
    body: params,
  });
}
// 办理完成
export async function insToDealComplete(params) {
  return request(`/osApi/insSerHdl/signSuccessInsSerHdl`, {
    method: 'POST',
    body: params,
  });
}

// 公积金缴纳查询
export async function AccusearrchList(params) {
  return request(`/osApi/accuPayCase/pageList`, {
    method: 'POST',
    body: params,
  });
}

export async function AccusearrchDicList(params) {
  return request(`/osApi/mdm/nmDict/queryDictItemsByCodes`, {
    method: 'POST',
    body: params,
  });
}

// 公积金缴纳详情
export async function accusearrchDetail(params) {
  return request(`/osApi/accuPayCase/queryPageEmpPaymentDetails`, {
    method: 'POST',
    body: params,
  });
}

// 社保列表查询
export async function socsearrchList(params) {
  return request(`/osApi/insPayCase/pageList`, {
    method: 'POST',
    body: params,
  });
}
// 社保字典接口
export async function socsearrchDicList(params) {
  return request(`/osApi/mdm/nmDict/queryDictItemsByCodes`, {
    method: 'POST',
    body: params,
  });
}
// 社保详情
export async function socsearrchDetail(params) {
  return request(`/osApi/insPayCase/queryPageEmpPaymentDetails`, {
    method: 'POST',
    body: params,
  });
}
// 派单详情
export async function insSendInfor(params) {
  return request(`/osApi/insSerHdl/getEmpInfo`, {
    method: 'POST',
    body: params,
  });
}
export async function addContactInfor(params) {
  return request(`/esApi/insSerHdl/queryContRcrdList`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
//
export async function insSubmitToRun(params) {
  return request(`/esApi/insSerHdl/updateSubmitToRun`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
// 详情
export async function insfundDetail(params) {
  return request(`/esApi/insSerHdl/queryInsSerHdl`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function insAddCheck(params) {
  return request(`/esApi/insSerHdl/insertInsSerHdlAddCheck`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function insAdd(params) {
  return request(`/esApi/insSerHdl/insertInsSerHdl`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function insaddHdlRemark(params) {
  return request(`/esApi/insSerRemark/insertInsRemark`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function insHdlRemark(params) {
  return request(`/esApi/insSerRemark/queryInsRemarkList`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function insCancelToDeal(params) {
  return request(`/esApi/insSerHdl/ancellationInsSerHdl`, {
    method: 'POST',
    body: params,
  });
}

// 问题人员添加问题反馈
export async function insertProbFdbk(params) {
  return request(`/osApi/problem/ins/insertProbFdbk`, {
    method: 'POST',
    body: params,
  });
}

// 问题人员详情中的基本信息
export async function getProBaseList(params) {
  return request(`/osApi/problem/ins/get`, {
    method: 'POST',
    body: params,
  });
}

// 反馈并取消问题人员标记
export async function cancelProbFlag(params) {
  return request(`/osApi/problem/ins/cancelProbFlag`, {
    method: 'POST',
    body: params,
  });
}

export async function addRefundInfor(params) {
  return request(`/osApi/insSerHdl/insertInsRefundInfo`, {
    method: 'POST',
    body: params,
  });
}
export async function socialUpdateDetail(params) {
  return request(`/esApi/insSerHdl/getInsSerHdl`, {
    method: 'POST',
    body: params,
  });
}
export async function socialUpdate(params) {
  return request(`/esApi/insSerHdl/updateInsSerHdl`, {
    method: 'POST',
    body: params,
  });
}
export async function getEmpNameList(params) {
  return request(`/esApi/insSerHdl/getEmpList`, {
    method: 'POST',
    body: params,
  });
}
export async function insGrants(params) {
  return request(`/esApi/insSerHdl/updateOriginalIssue`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// 获取服务类型列表
export async function getServiceDictList(params) {
  return request(`/mgrApi/plcyDataDict/entrySerTypeList`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
// 获得社保在职列表
export async function getAdjustList(params) {
  return request(`/osApi/insEntryAdj/insEntAdjPage`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
// 社保在职线下申报
export async function underLineDeclare(params) {
  return request(`/osApi/insEntryAdj/underLineDecl`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// 获得社保在职调整类型
export async function getAdjustType(params) {
  return request(`/osApi/mdm/nmDict/queryDictItemsByCodes`, {
    method: 'POST',
    body: params,
  });
}

// 获得社保在职详细信息
export async function getAdjustDetail(params) {
  return request(`/osApi/insEntryAdj/insEntAdjInfo`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// 社保在职标记申报成功
export async function DeclareMark(params) {
  return request(`/osApi/insEntryAdj/completeDecl`, {
    method: 'POST',
    body: params,
  });
}

// 取消社保在职调整申报
export async function cancelDeclare(params) {
  return request(`/osApi/insEntryAdj/cancelDecl`, {
    method: 'POST',
    body: params,
  });
}

// 社保在职办理备注详情
export async function detailRemark(params) {
  return request(`/osApi/insEntryAdj/listInsAdjRemark`, {
    method: 'POST',
    body: params,
  });
}

// 社保在职添加办理备注
export async function addHdlRemark(params) {
  return request(`/osApi/insEntryAdj/addInsAdjRemark`, {
    method: 'POST',
    body: params,
  });
}

// 查询缴纳明细信息（社保公积金）
export async function getPayDetails(params) {
  return request(`/csApi/empSendCreateService/querySerSetDetail`, {
    method: 'POST',
    body: params,
  });
}

// 查询签约方列表
export async function getContractList(params) {
  return request(`/nsApi/supplier/getListByUser`, {
    method: 'POST',
    body: params,
  });
}

export async function checkSocialInfor(params) {
  return request(`/esApi/insSerHdl/checkInsSendPd`, {
    method: 'POST',
    body: params,
  });
}
export async function getRefundInfor(params) {
  return request(`/osApi/insSerHdl/queryInsRefundInfo`, {
    method: 'POST',
    body: params,
  });
}

export async function getRemarkData(params) {
  return request(`/osApi/insSerHdl/queryInsRefundInfo`, {
    method: 'POST',
    body: params,
  });
}

// 修改生效年月
export async function updateZodiacYM(params) {
  return request('/osApi/insEntryAdj/updateEntryAdjDet', {
    method: 'POST',
    body: params,
  });
}

export async function queryEntryAdjDet(params) {
  return request('/osApi/insEntryAdj/queryEntryAdjDet', {
    method: 'POST',
    body: params,
  });
}

export async function queryInjSecAccos(params) {
  return request('/osApi/insEntryAdj/queryInjSecAccos', {
    method: 'POST',
    body: params,
  });
}
export async function getDownInfor(params) {
  return request('/osApi/insEntryAdj/downloadUpdEntAdjTemp', {
    method: 'POST',
    body: params,
  });
}

// 用工列表
export async function getHireList(params) {
  return request('/osApi/insAddDet/pageListInsAdd', {
    method: 'POST',
    body: params,
  });
}

export async function uploadFile(params) {
  return request('/osApi/insSerHdl/insImport', {
    method: 'POST',
    body: params,
  });
}

export async function uploadFileBatch(params) {
  return request('/osApi/insEntryAdj/insEntryAdjImport', {
    method: 'POST',
    body: params,
  });
}
export async function uploadFileModify(params) {
  return request('/osApi/insEntryAdj/impUpdInsEntAdj', {
    method: 'POST',
    body: params,
  });
}

export async function uploadFileGrant(params) {
  return request('/esApi/insSerHdl/insHdlBatchIssue', {
    method: 'POST',
    body: params,
  });
}

export async function uploadFileBatchReimport(params) {
  return request('/osApi/insSerHdl/insRefundInfoImport', {
    method: 'POST',
    body: params,
  });
}
